package vo;

import po.StudentPO;

public class StudentVO{
	private int ID;
	private String name;
	private String sex;
	private long phone_num;
	private String mail_address;
	private String department;
	private String master;
	private String class_name;
	private String admission_time;
	//private String Grade;
	
	public StudentVO(String name,int ID,String admission_time){
		this.name = name;
		this.admission_time = admission_time;
		this.ID = ID;
	}
	
    public StudentVO(int ID, String name, String sex, long phone_num, String mail_address,
    		String department, String master, String class_name, String admission_time)
    {
        this.ID = ID;
        this.name = name;
        this.sex = sex;
        this.phone_num = phone_num;
        this.mail_address = mail_address;
        this.department = department;
        this.master = master;
        this.class_name = class_name;
        this.admission_time = admission_time;
    }
    
    public StudentVO(StudentPO studentPO) {
    	if(studentPO == null){
    		return;
    	}
    	this.ID = studentPO.getID();
    	this.name = studentPO.getName();
        this.sex = studentPO.getSex();
        this.phone_num = studentPO.getPhoneNum();
        this.mail_address = studentPO.getMailAddress();
        this.department = studentPO.getDepartment();
        this.master = studentPO.getMaster();
        this.class_name = studentPO.getClassName();
        this.admission_time = studentPO.getAdmissionTime();
    }
    
    public int getID() {
    	return ID;
    }
    public String getName() {
    	return name;
    }
    public String getSex() {
    	return sex;
    }
    public long getPhoneNum() {
    	return phone_num;
    }
    public String getMailAddress() {
    	return mail_address;
    }
    public String getDepartment() {
    	return department;
    }
    public String getMaster() {
    	return master;
    }
    public String getClassName() {
    	return class_name;
    }
    public String getAdmissonTime() {
    	return admission_time;
    }
    
    public void setID(int ID) {
        this.ID = ID;
    }
    public void setName(String name) {
    	this.name = name;
    }
    public void setSex(String sex) {
    	this.sex = sex;
    }
    public void setPhoneNum(long phone_num) {
        this.phone_num = phone_num;
    }
    public void setMailAddress(String mail_address) {
    	this.mail_address = mail_address;
    }
    public void setDepartment(String department) {
    	this.department = department;
    }
    public void setMaster(String master) {
    	this.master = master;
    }
    public void setClassName(String class_name) {
    	this.class_name = class_name;
    }
    public void setAdmissionTime(String admission_time) {
    	this.admission_time = admission_time;
    }
}
